import Layout from '@/layout/Layout';

const businessRouter = {
  path: '/business',
  component: Layout,
  redirect: 'noredirect',
  name: '商户管理',
  meta: {
    title: '商户管理',
    icon: 'el-icon-s-shop',
  },
  children: [
    {
      path: 'platformBusinessDetail',
      component: () => import('@/views/business/platformBusinessManagement/index'),
      name: 'PlatformBusinessDetail',
      meta: { title: '平台商户', cache: true },
    },
    {
      path: 'businessManagement',
      component: () => import('@/views/business/BusinessManagement'),
      name: 'BusinessManagement',
      meta: { title: '商户管理', cache: true },
    },
    {
      path: 'businessFileManagement',
      component: () => import('@/views/business/BusinessFileManagement'),
      name: 'businessFileManagement',
      meta: { title: '商户资料', cache: true },
    },
    {
      path: 'assoicateManagement',
      component: () => import('@/views/business/AssoicateManagement'),
      name: 'AssoicateManagement',
      meta: { title: '关联商户', cache: true },
    },
    {
      path: 'waiterManagement',
      component: () => import('@/views/business/WaiterManagement'),
      name: 'WaiterManagement',
      meta: { title: '服务员管理', cache: true },
    },
    {
      path: 'salesmanManagement',
      component: () => import('@/views/business/SalesmanManagement'),
      name: 'SalesmanManagement',
      meta: { title: '业务员管理', cache: true },
    },
    {
      path: 'promoterManagement',
      component: () => import('@/views/business/PromoterManagement'),
      name: 'PromoterManagement',
      meta: { title: '推广员管理', cache: true },
    },
    {
      path: 'businessDepartManagement',
      component: () => import('@/views/business/BusinessDepartManagement'),
      name: 'BusinessDepartManagement',
      meta: { title: '商户部门', cache: true },
    },
    {
      path: 'managerBusinessManagement',
      component: () => import('@/views/business/ManagerBusinessManagement'),
      name: 'ManagerBusinessManagement',
      meta: { title: '商户管理员', cache: true },
    },
    {
      path: 'businessClassifyManagement',
      component: () => import('@/views/business/BusinessClassifyManagement'),
      name: 'BusinessClassifyManagement',
      meta: { title: '商户分类', cache: true },
    },
    {
      path: 'deliveryModelManagement',
      component: () => import('@/views/business/DeliveryModelManagement'),
      name: 'DeliveryModelManagement',
      meta: { title: '配送费模板', cache: true },
    },
    {
      path: 'memberManagement',
      component: () => import('@/views/business/MemberManagement'),
      name: 'MemberManagement',
      meta: { title: '会员管理', cache: true },
    },
    {
      path: 'taskManagement',
      component: () => import('@/views/business/TaskManagement'),
      name: 'TaskManagement',
      meta: { title: '任务大厅', cache: true },
    },
  ],
};

export default businessRouter;
